package com.ytjj.qmyx.supplychain.mapper;


import com.ytjj.qmyx.supplychain.mapper.entity.LinkErp;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 菜鸟erp
 * 
 *
 * @email 
 * 
 */

public interface LinkErpMapper  extends Mapper<LinkErp> {

    /**
     * 根据供应商查询菜鸟erp记录
     * @param bankId
     * @return
     */
    LinkErp getByBankId(@Param("bankId") Integer bankId);

    /**
     * 根据供应商查询菜鸟erp记录
     * @param bankerIds
     * @return
     */
    List<LinkErp> getByBankIds(@Param("bankerIds") List<Integer> bankerIds);

    /**
     * 修改状态
     */
    int updateStatus(@Param("id") Integer id,@Param("status") Integer status);
}
